package com.miracle.basemvp.base;

/**
 * 服务器响应结果
 * @param <R>
 */
public class BaseResponse<R> {

    /**
     * message : 成功
     * content : {}
     * code : 0000
     */
    private String message;
    private R content;
    private String code;

    public boolean isSuccessed() {
        return code.equals("0000");
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public R getContent() {
        return content;
    }

    public void setContent(R content) {
        this.content = content;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}
